<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

/**
 * TokenController
 *
 * @package App\Http\Controllers
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class TokenController extends Controller
{
    protected $api;

    /**
     * Create a new controller instance.
     *
     * @return TokenController
     */
    public function __construct()
    {
        $this->api = app('cmp')->token;
    }

    /**
     * 首页
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $data = $this->api->app('828757228', '95474e396de39b70be408a645bd5a876');
        dd($data);

        return $data;
    }
}